package com.ruoyi.business.sundry.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ruoyi.business.sundry.service.JbEvaluationExampleService;
import org.springframework.stereotype.Service;
import com.ruoyi.business.base.JoBaseServiceImpl;
import com.ruoyi.business.sundry.mapper.JbEvaluationExampleMapper;
import com.ruoyi.business.sundry.domain.JbEvaluationExample;

import java.util.List;

/**
 * 跟进计划评论的参考实例Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-11
 */
@Service
public class JbEvaluationExampleServiceImpl
        extends JoBaseServiceImpl<JbEvaluationExampleMapper, JbEvaluationExample>
        implements JbEvaluationExampleService
{

    @Override
    public int deleteByEvaluationId(Long evaluationId)
    {
        LambdaQueryWrapper<JbEvaluationExample> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(JbEvaluationExample::getEvaluationId, evaluationId);
        return baseMapper.delete(wrapper);
    }

    @Override
    public List<JbEvaluationExample> findByEvaluationId(Long evaluationId)
    {
        LambdaQueryWrapper<JbEvaluationExample> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(JbEvaluationExample::getEvaluationId, evaluationId);
        return baseMapper.selectList(wrapper);
    }
}
